	
	<div id="page-content">
			<div class="col-lg-12">
		        <div class="panel">
		            <div class="panel-heading">
		                <h3 class="panel-title" style="text-align: right;">
		                	#@installPJaxGoBackBtn()
		                	#@installFlowHisBtn(defId,procInsId)
		                	#@installAttachment(o?o.id:'')
		                </h3>
		            </div>
					#@buildFormPanelContainer("调岗申请单","/WEB-INF/admin/oa/apply/userchangestation/editForm.html")
		            #@buildWorkFlowHisTable(procInsId,hislist)
		        </div>
		    </div>
	</div>
	<script>
		function save(){
			var data = common_ajax.ajaxFunc("/admin/oa/apply/userchangestation/save", $('#editForm').serialize(), "json", null);
			if(data.success){
				pointLion.alertMsg("保存成功!" , "success" , "small" , function(){
					location.href = ctx+'/admin/oa/apply/userchangestation/getApplyListPage';//跳转到列表页
				},data);
			}else{
				pointLion.alertMsg(data.message , "success" , "small" , function(){
					$(".btn").removeAttr("disabled");
				},data);
			}
		}
		function selectOneRole(){
			//调用选择一个单位组件
			pointLion.selectOneRole(function(node){
				if(node&&node.length>0){
					var stationId=[];
					var stationName=[];
					$.each(node,function(i,d){
						stationId.push(d.id);
						stationName.push(d.name);
					})
					$("#stationId").val(stationId.join(","));//所选单位id
					$("#stationName").val(stationName.join(","));//所选角色名称
				}else{
					$("#stationId").val("");//所选单位id
					$("#stationName").val("");//所选角色名称
				}
					
				
			});
		}
		$(document).ready(function() {
			$('#editForm').bootstrapValidator({
	            fields: {
	            }
	        }).on("success.form.bv", function (e) {
	            save();
	            return false;//阻止表单跳转
	        });
		});
	</script>